/*
* @Author: Adolphus.Yao
* @Date:   2019-09-12 13:47:51
* @Last Modified by:   Adolphus.Yao
* @Last Modified time: 2019-09-12 13:48:46
*/
package main


import (
    "fmt"
    "encoding/json"
)

func main() {

    b := []byte(`{"IP": "192.168.11.22", "name": null}`)

    m := make(map[string]interface{})

    err := json.Unmarshal(b, &m)
    if err != nil {

        fmt.Println("Umarshal failed:", err)
        return
    }


    fmt.Println("m:", m)

    for k,v :=range m {
        fmt.Println(k, ":", v)
    }
}
